<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String pageTitle = "Search Flight";
%>
<%-- <jsp:include page="../template/header.jsp" flush="true"> --%>
<%-- 	<jsp:param name="pageTitle" value="<%=pageTitle%>" /> --%>
<%-- </jsp:include> --%>
<center>
	<section id="form-container">
		<form method="POST" name="flight"
			action="${pageContext.request.contextPath}/flight/searchmockdb.html">
			<fieldset>
				<legend> Search Flights</legend>
				<table class="tableSearchFlight">
					<tr>
						<td><input type="radio" class="radioBtn" name="typeOfTrip"
							value="roundTrip" checked>Round-trip</td>
						<td><input type="radio" class="radioBtn" name="typeOfTrip"
							value="oneWay" >One-way</td>
					</tr>
					<tr>
						<td colspan="2"><label>From</label> <br> <input
							id="from" width="300px" name="fromLocation" class="form-control"></td>
						<td colspan="4"><label>To</label><br> <input id="to"
							width="300px" name="toLocation" class="form-control"></td>
					</tr>
					<tr>
						<td><label>Depart</label><br> <input type="text"
							 name="outBound" class="datepicker form-control"></td>
						<td>
						<label id="lbReturn">Return</label> <br> <input type="text" id="txtReturn"
							name="inBound" 	class="datepicker form-control">
							</td>
						<td><label>Adult</label> <br> <c:set var="nums"
								value="0,1,2,3,4" scope="application" /> <select
							name="numAdult" class="form-control">
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
						</select> <br>12+ years</td>
						<td><label>Child</label> <br> <select name="numChild"
							class="form-control">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
						</select> <br> under 12</td>
						<td><label>Infant</label> <br> <select name="numInfant"
							class="form-control">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
						</select> <br> under 2</td>
						<td><label>Max Stop(s)</label> <br> <select
							name="numStop" class="form-control">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2+</option>
						</select><br></td>
					</tr>
					<tr align="center" valign="middle">
						<td colspan="2">
							<input type="text" id="demo-input-airline" name="airlines" />
						</td>
						<td colspan="4"><button type="submit" class="btn btn-success">Search</button></td>
					</tr>
				</table>
				<br/>
				<center><lable style="color:red">${errorMessage }</lable></center>
			</fieldset>
		</form>
	</section>
</center>
</body>
</html>